The first thing we need to do is get an MPC to work with a non playing character.
Now I have my game set to players as AR 15, so I'm going to get an AR 15 NPC.
If you want an AR six, you're going to have to go to your settings.
Save off your game.
Let's go ahead and do that.
Let's say MPC work and we'll just go ahead and save that.
Open this up again.
If we go to Avatar, you can switch your avatar that joins the game as AR six or AR 15.
I'm going to keep it at AR 15.
I'm going to do AR 15 rigs If you want an AR six rig or R six or six MPC.
Go ahead and switch it for this step by AR 15 is selected.
So I'll cancel.
I'm going to go to my Avatar tab.
I'm going to go to Rig Builder AR 15 so you can pick any of these I want to do man rig.
Plop him, plop him into the world, and you need to put either clothes or body colors on your NPC because
the roadblocks moderation will ban you If you have NPCs with no clothes or body colours.
It's just a goofy setting they have on there.
Let's go ahead and open this up.
Hit the plus and then I'll do b04 body colors.
Boom, we got our default body colors.
You can change those colors however you want.
Let's change the shirt.
So we have a dark green shirt right here.
The torso color, make it purple.
Just so you know how to do that.
If you don't want it to say dummy, you can just change the name.
We could change it to like Ralph.
That's cool if you don't want that name showing at all.
Let's go to humanoid.
Go to display distance type instead of view or put none.
There you go.
And now you don't have the name above them.
We'll keep it like that for now.
Let's go and start our game.
So hit the play.
We're going to move our animation scripts into our NPC from our player.
So here's my player.
I'm going to go to workspace, not player's workspace.
I'm going to look for my character SIM Tech Nitro one.
I'm going to get my animate script.
There's a bunch of stuff underneath that.
We need all of it.
So I'm going to keep it close.
I'm going to right click and then I'm going to copy.
Right now, I need to turn my game off because nothing is going to save.
The game is running.
Now go to Ralph.
Right click and then paste into.
Look at that.
Now, the downside is I have all this stuff and I have my script, but this is a local script.
It's great for players, not great for NPCs.
Bomber Well, we're going to have to do is go to Ralph, hit the plus, add a regular script and we're
going to call this animate.
Now I'm going to open the animate script from my player.
See that little computer thingy there?
It is a local script.
I'm going to double click on that.
And there's a lot of code in here, like 800 lines.
I'm going to select everything.
I'm going to do a control A to select all control C to copy all.
I'm going to go to my animate script, which is a server script, right?
We just did script.
And I'm going to do a control V to paste it.
Now, I got like 800 lines here.
There's one thing that I need to remove.
I need to look for the binding tool chat hook.
Right.
So that's the emote binding all set up, emote chat hook.
That's what I need.
And I'm just going to go ahead.
It's at about 748, but that may change.
So you could go ahead and do a control F and look for chat, Right.
And then you'll find it.
There's two occurrences in this entire script.
And they're both they're both in that section of code.
I'm going to delete it because we don't want him using the chat box in the anime.
I'm going to show you how to use get NPCs to talk in the chat box, but not now.
I'm going to delete it.
Right?
And it's just going to show some errors in the output window, but that's going to kind of mess up our
troubleshooting.
If you miss this step, it's not going to be a big deal.
Now I'm going to open up my script from my my character, the little computer there.
It's the animate script with a little computer, the local script.
I'm going to select all of these.
I'm going to hit a shift, click on the play mode.
I'm going to drag everything under that animate to my animate.
Nice.
If you don't delete this, it's going to be fine because it's a local script.
It's not going to play on an NPC.
I'm going to delete it though, just to get rid of it.
I don't need extra stuff there that I got to worry about.
Now, Ralph isn't going to move because.
Humanoid route part is anchored for some reason.
They anchor the humanoid root part when you bring it in from the rig builder.
There we go.
We just unanchored the humanoid root part.
Now we can get Ralph to start walking around and doing stuff.
Let's play the game to make sure we have no errors.
Go to view.
Hit the output window.
Hit play.
See what we got?
And there he is.
And he's standing like a regular player.
And you're going to see him do some.
There you go.
Default idol stuff like looking around.
Basically, he has everything that I have and we can make them walk and run and do all kinds of cool
stuff.
So let's go ahead and get started with that.